package chapter_09.p2;
import chapter_09.Protection;


public class OtherPackage {
	// Protection类声明为public才可以在此使用
	public OtherPackage() {
		Protection p = new Protection();
		System.out.println("other package constructor");
		
		// class or package only
		// n默认是保护类型的
		// System.out.println("n = " + p.n);
		
		// class only
		// System.out.println("n_pri = " + p.n_pri);
		
		// class, subclass or package only
		// System.out.println("n_pro = " + p.n_pro);
		
		System.out.println("n_pub = " + p.n_pub);
	}
}
